package com.v1.video.option.db;

import org.json.JSONObject;

import android.content.ContentValues;
import android.database.Cursor;

import com.iss.bean.BaseBean;
import com.iss.db.TableColumn;

public class SearchKeyInfo extends BaseBean<SearchKeyInfo> {

    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    
    @TableColumn(type = TableColumn.Types.TEXT,  isIndex = true, isNotNull = true)
    public String key = "";

    public SearchKeyInfo(){
        
    }
    
    public SearchKeyInfo(int hour,int minute,String action){
        this.key = action;
    }
    
    @Override
    public SearchKeyInfo parseJSON(JSONObject jsonObj) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public JSONObject toJSON() {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public SearchKeyInfo cursorToBean(Cursor cursor) {
        // TODO Auto-generated method stub
        key = cursor.getString(cursor.getColumnIndex("key"));
        return this;
    }

    @Override
    public ContentValues beanToValues() {
        // TODO Auto-generated method stub
        ContentValues values = new ContentValues();
        values.put("key", key);
        return values;
    }    
}
